package com.bytedance.framwork.core.monitor;

import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.bytedance.frameworks.core.thread.e;

import org.json.JSONObject;

import java.util.Iterator;

import inline.FileUtils;

final class d extends e {
    private final c a;

    d(c arg1) {
        this.a = arg1;
    }

    public final void run() {
        String v0_1;
        Iterator v8;
        byte[] v7 = null;
        try {
            if (c.m() == null) {
                return;
            }
            v8 = c.n().iterator();
            if (!v8.hasNext()) {
                return;
            }
            v0_1 = com.bytedance.framwork.core.monitor.c.d((String) v8.next()) + "&encrypt=close";

            boolean v6 = c.a(this.a);
            byte[] v0_2 = TextUtils.isDigitsOnly(v0_1) ? v7 : FileUtils.a(v0_1, null, null, null, "GET", false, v6);
            c.a(this.a, new JSONObject(new String(v0_2)));
            return;
        } catch (Throwable v0) {
            label_39:
            if (!c.o()) {
                c.p();
                com.bytedance.framwork.core.monitor.a.a().b();
            }
            v0.printStackTrace();
        }
    }

    @Override
    public void f(@NonNull Object o) {

    }
}

